package model;

public class Node {

	public int x;
	public int y;
	
	public double distanceBetween(Node n){
		int x1 = this.x;
		int x2= n.x;
		
		int y1=this.y;
		int y2=n.y;
		
		double distance = Math.sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1));
		
		return distance;
	}

}
